Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak some minor UI issues #743

Merged
merged 7 commits into from
Jun 11, 2024
Merged

Tweak some minor UI issues #743

merged 7 commits into from
Jun 11, 2024

Conversation

a110605
Copy link
Contributor

@a110605 a110605 commented Jun 6, 2024

What's change in this PR?

Tweak some stange LH UI issues listed in [UI][IMPROVEMENT] Tweak some minor UI issues

Issue

[UI][IMPROVEMENT] Tweak some minor UI issues

Result

See below comments

@@ -140,6 +140,12 @@
color: white !important;
}

.ant-table-empty{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The strange white overlay on the fixed right column. Only happen when table is empty and has fixed: right.

image

After fix
Screenshot 2024-06-06 at 8 40 44 PM

@@ -18,7 +18,7 @@ const getMenus = function (menuArray, siderFold) {
<span>
{item.icon ? <Icon type={item.icon} /> : ''}
{siderFold && topMenus.indexOf(item.key) >= 0 ? '' : item.name}
<Icon type="down" />
<Icon type="down" style={{ marginLeft: 5 }} />
Copy link
Contributor Author

@a110605 a110605 Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After
Screenshot 2024-06-06 at 8 36 51 PM

</CopyToClipboard> : 'URL no available'
}
</p>
<h3> Backup URL </h3>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get URL dropdown is disabled if url is empty. So I refactor to make this BackupURL modal simple.

Screenshot 2024-06-06 at 8 41 00 PM

@@ -47,7 +47,6 @@ function actions({ selected, showEditDisksModal, deleteHost }) {
const tooltipProps = { placement: 'left' }
return (
<DropOption
buttonStyle={{ padding: '0 0' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix missing paddings of dropOption

Screenshot 2024-06-06 at 8 42 05 PM

{attchedNodeIsDown ? <Tooltip title={'The attached node is down'}><Icon className="faulted" style={{ transform: 'rotate(45deg)', marginRight: 5 }} type="api" /></Tooltip> : ''}
{attachedNodeIsDown && (
<Tooltip title={'The attached node is down'}>
<Icon className="faulted" style={{ transform: 'rotate(45deg)', marginRight: 5, marginLeft: 5 }} type="api" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some marginLeft for volume state column Icon

Screenshot 2024-06-06 at 8 42 30 PM

@@ -21,7 +21,7 @@ const modal = ({
if (item.podList) {
CardItem = item.podList.map((ele, index) => {
return (
<div style={{ border: '1px solid #f4f4f4', padding: 24, marginRight: 5, marginBottom: 10 }} key={index}>
<div style={{ width: '100%', border: '1px solid #f4f4f4', padding: 24, marginRight: 5, marginBottom: 10 }} key={index}>
Copy link
Contributor Author

@a110605 a110605 Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-06-06 at 8 41 53 PM

@@ -28,3 +28,9 @@
display: inline-block;
}
}

:global{
Copy link
Contributor Author

@a110605 a110605 Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make text align center
Screenshot 2024-06-06 at 8 41 33 PM

@a110605 a110605 changed the title Issue 8646 Tweak some minor UI issues Jun 6, 2024
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Copy link

@torchiaf torchiaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@a110605 a110605 merged commit 0e164ca into longhorn:master Jun 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants